﻿package plugin.npcDialog.ui.panels.boss
{
    import flash.events.*;
    import manager.*;
    import plugin.instance.*;
    import uiresource.npcdialogs.*;

    public class BOSS5 extends SWDUI implements INpcDialogContent
    {
        private var _data:Object;

        public function BOSS5()
        {
            return;
        }// end function

        public function close() : void
        {
            if (this.parent)
            {
                this.parent.removeChild(this);
            }
            return;
        }// end function

        public function show(param1:Object, param2:Object) : void
        {
            return;
        }// end function

        override protected function initializeView() : void
        {
            super.initializeView();
            label_jinru.addEventListener(MouseEvent.CLICK, this.clickHandler);
            return;
        }// end function

        protected function clickHandler(event:MouseEvent) : void
        {
            var _loc_2:* = ConfigDictionary.data.deliver[this._data.npcid][0];
            PluginManager.instance.sendToServer("instance", CMDInstance.NpcInstance, {mapid:_loc_2.stageid});
            return;
        }// end function

        public function update(param1:Object, param2:int = 0) : void
        {
            return;
        }// end function

    }
}
